// 一级菜单修改背景颜色
function changeBackground(id) {	
	//原地点选
	if(selectId == id){
		// 还原背景色
		document.all("item_" + id).style.background = "#007bff"; // #2a68c9
		document.all("item_" + id).style.color = "#fff";// #0014ff
		document.all("item_icon_" + id).style.color = "#fff";// #0014ff
		document.all("item_endicon_" + id).style.color = "#fff";// #0014ff
		document.all("itemMenu_" + id).style.display = "none";
		openFlg = 0;
		selectId = '';
		return;
	}
	// 处理旧的
	if (selectId != '') {
		try {
			// 还原背景色
			document.all("item_" + selectId).style.background = "#007bff"; // #2a68c9
			document.all("item_" + selectId).style.color = "#fff";// #0014ff
			document.all("item_icon_" + selectId).style.color = "#fff";// #0014ff
			document.all("item_endicon_" + selectId).style.color = "#fff";// #0014ff
			document.all("itemMenu_" + selectId).style.display = "none";
		} catch (e) {
		}
	}
	// 设定新的
	if (id != '') {
		try {
			document.all("item_" + id).style.background = "#0014ff";// #0014ff
			document.all("item_" + id).style.color = "#fff";// #0014ff
			document.all("item_icon_" + id).style.color = "#fff";// #0014ff
			document.all("item_endicon_" + id).style.color = "#fff";// #0014ff
			// 打开菜单
			document.all("itemMenu_" + id).style.display = "";
			document.all("itemMenu_" + id).style.color = "#000";// #0014ff
			/*document.all("itemMenu_" + id).style.transition = "all .5s ease 0s";*/
			openFlg = 1;
		} catch (e) {
		}
	}
	selectId = id;
}
// 二级菜单修改背景颜色
function changeBackgroundSub(subId) {
	// 处理旧的
	if (selectSubId != '') {
		try {
			// 还原背景色
			document.all("itemSub_" + selectSubId).style.background = "";// #2a68c9
			document.all("itemSub_" + selectSubId).style.color = "#fff";// #0014ff
		} catch (e) {
		}
	}
	// 设定新的
	if (subId != '') {
		try {
			document.all("itemSub_" + subId).style.background = "#2252e1";// #0014ff  03A9F4
			document.all("itemSub_" + subId).style.color = "#fff";// #0014ff
		} catch (e) {
		}
	}
	selectSubId = subId;
}